<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>axios保存一个用户</title>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script>
        axios({
            method:'post',
            url:'http://localhost:8099/users'
            data:{
                username:"newUser",
                password:'123456',
                phone:"12345678901",
                info:"{\'age\":20,\"city\":\"北京\"}",
                balance:10000
            }
        }).then((result)=> {
            console.log(result.data.data)
        })
        .catch((err)=>{
            console.log(err)
        })
    </script>
</head>
<body>

</body>
</html>